package com.black.play.entity;

import com.black.play.constant.AppConstant;

import java.awt.*;

/**
 * 格子类型枚举类
 *
 * @author ylx
 */
public enum CellValue
{
    NUMBER_0("", Color.BLUE),
    NUMBER_1("1", Color.BLUE),
    NUMBER_2("2", Color.GREEN),
    NUMBER_3("3", Color.YELLOW),
    NUMBER_4("4", new Color(28,71,110)),
    NUMBER_5("5", new Color(83, 59, 170)),
    NUMBER_6("6", new Color(50, 17, 153)),
    NUMBER_7("7", new Color(40, 5, 24)),
    NUMBER_8("8", new Color(0, 12, 3)),
    NUMBER_9("9", Color.BLACK),
    MINE(AppConstant.MINE, Color.RED),
    FLAG(AppConstant.FLAG, Color.YELLOW),
    UNKNOWN(AppConstant.UNKNOWN, Color.BLACK),
    NULL("", Color.BLACK),
    ;
    final String text;
    final Color fontColor;

    CellValue(String text, Color fontColor)
    {
        this.text = text;
        this.fontColor = fontColor;
    }

    public String getText()
    {
        return text;
    }

    public Color getFontColor()
    {
        return fontColor;
    }
}
